<%@ page contentType="text/html;charset=UTF-8" %>
<html lang="zh-CN">
<head><title>编辑商品</title></head>
<link href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet">
<body class="bg-light">

<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-8 col-lg-6">
            <div class="card shadow-sm">
                <div class="card-header bg-success text-white">
                    <h4 class="mb-0">编辑商品</h4>
                </div>
                <div class="card-body">
                    <form action="${pageContext.request.contextPath}/product/edit" method="post">
                        <jsp:include page="_form.jsp"/>
                        <div class="d-grid">
                            <button type="submit" class="btn btn-success">保存</button>
                        </div>
                    </form>
                </div>
                <div class="card-footer text-end">
                    <a href="${pageContext.request.contextPath}/product/list" class="btn btn-outline-secondary btn-sm">返回列表</a>
                </div>
            </div>
        </div>
    </div>
</div>
<a href="${pageContext.request.contextPath}/product/list">返回列表</a>
<script src="${pageContext.request.contextPath}/static/js/bootstrap.bundle.js"></script>
</body>
</html>